import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
class ButtonPage extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text("Button"),),
      body: Center(
          child: Column(
            children: <Widget>[
              FlatButton(
                child: Text('FlatButton'),
                color: Colors.blue,
                textColor: Colors.white,
                onPressed: (){

                },
              ),
              MaterialButton(
                color: Colors.yellow,
                  onPressed: (){},
                  child: Text('MaterialButton')
              ),
              RaisedButton(
                color: Colors.red,
                  onPressed: (){},
                  child: Text('RaisedButton')
              ),
              OutlineButton(
                onPressed: (){},
                color: Colors.deepPurple,
                hoverColor: Colors.cyanAccent,
                child: Text('OutlineButton'),
              ),
              IconButton(
                onPressed: (){},
                icon:Icon(Icons.thumb_up),
                color: Colors.lightBlueAccent,
              ),
              RaisedButton.icon(
                  onPressed: (){},
                  color: Colors.cyan,
                  icon: Icon(Icons.phone),
                  label:Text('call') ),
              RaisedButton(
                onPressed: (){},
                color: Colors.amber,
                shape: RoundedRectangleBorder(borderRadius: BorderRadius.all(Radius.circular(20))),
                child: Text('FlatButton'),
              )
            ]
          )
      ),
    );
  }

}